package top.sigetech.boot02.controller;

import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
public class DateController {

    public Map<String,Object> getDate(){
        Date date = new Date();
        HashMap<String, Object> stringObjectHashMap = new HashMap<>();
        stringObjectHashMap.put("time",date);
        return stringObjectHashMap;
    }
}
